import Vue from 'vue'
import weex from 'weex-vue-render'
/*global Vue*/

weex.init(Vue)
/* weex initialized here, please do not move this line */


import * as filters from '@/filters/index';
//import ImgSrcPlugin from '@/plugins/img_src_plugin';

import mixins from '@/mixins/index'

//注册自定义过滤器
Object.keys(filters).forEach(key => Vue.filter(key, filters[key]));

//Vue.use(ImgSrcPlugin);

Vue.mixin(mixins);

const router = require('./router');
const App = require('@/index.vue');
/* eslint-disable no-new */
new Vue(Vue.util.extend({el: '#root', router}, App));
router.push('/');

